﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace JackyCode.Mock.Test
{
    public class MethodInfoHelper
    {
        public static MethodInfo GetIReturnStrMethodInfo()
        {
            return typeof(IService).GetMethod("IReturnStrMethod");
        }

        public static MethodInfo GetIReturnBoolMethodInfo()
        {
            return typeof(IService).GetMethod("IReturnBoolMethod");
        }

        public static MethodInfo GetIOutMethod()
        {
            return typeof(IService).GetMethod("OutMethod");
        }

        public static MethodInfo GetIRefMethod()
        {
            return typeof(IService).GetMethod("RefMethod");
        }

        public static MethodInfo GetINonReturnMethodInfo()
        {
            return typeof(IService).GetMethod("NonReturnMethod");
        }

        public static MethodInfo GetCReturnStrMethodInfo()
        {
            return typeof(Service).GetMethod("CReturnStrMethod");
        }

        public static MethodInfo GetReturnStrNonVirMethodInfo()
        {
            return typeof(Service).GetMethod("ReturnStrNonVirMethod");
        }

        public static MethodInfo GetCReturnBoolMethodInfo()
        {
            return typeof(Service).GetMethod("CReturnBoolMethod");
        }

        public static MethodInfo GetReturnBoolNonVirMethodInfo()
        {
            return typeof(Service).GetMethod("ReturnBoolNonVirMethod");
        }
    }
}
